

package org.koyabr.webx.demo.danmaku.web.post.module.screen.detail;

import java.util.LinkedList;

import com.alibaba.citrus.turbine.dataresolver.Param;
import com.alibaba.citrus.turbine.Context;

import org.koyabr.webx.demo.danmaku.biz.PostManager;
import org.koyabr.webx.demo.danmaku.dal.dataobjs.Danmaku;
import org.springframework.beans.factory.annotation.Autowired;

public class DanmakuSrc {
    @Autowired
    private PostManager postManager;

    public void execute(@Param("id") String postId  ,Context context) throws Exception {
        
        LinkedList<Danmaku> danmakuSet = (LinkedList<Danmaku>)postManager.getAllDanmakusByPost(postId);
        context.put("danmakuSet", danmakuSet);
    }
}
